package com.zm.campus.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
@TableName("t_audit_treehole")
public class AuditTreeHole implements Serializable {//待发布树洞字段

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;//待审核树洞的id

    private String title;/* 标题*/

    private String releaseUserName;//发布者的姓名

    private String content; /* 内容*/
    private Integer schoolId;//审核者所在学校id

    private String releaseUserId;/* 发布者的用户id外键*/

    @JsonFormat(pattern = "MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date auditDate;//审核时间

    @JsonFormat(pattern = "MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date releaseDate;//发布时间

    private Integer auditStatus;//审核状态，0待审核，1通过，2未通过
}
